package com.yan.common.exception;

/**
 * Created by yanl_ on 2018/4/26.
 */
public class HttpException extends Exception {
    private int code;
    private String msg;
    private String content;

    public HttpException(int code, String message, String content) {
        super(message);
        this.code = code;
        this.msg = message;
        this.content = content;
    }

    @Override
    public String getMessage() {
        return toString();
    }

    @Override
    public String getLocalizedMessage() {
        return toString();
    }

    @Override
    public String toString() {
        return "HttpException{" +
                "code=" + code +
                ", msg='" + msg + '\'' +
                ", content='" + content + '\'' +
                '}';
    }
}

